<div ng-controller="PartnerCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/partner/list">{{'productcat'| translate}}{{'List'|translate}}</a></li>
        <li class="active">
            {{"List"|translate}}
            <a href="#/partner/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text"  placeholder="{{'product_id'|translate}}"  ng-model="product_id">
          <input type="text"  placeholder="{{'keyword'|translate}}"  ng-model="keyword">
          <button class="sui-btn btn-primary" type="submit" ng-click="getProductList()">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'user_name'|translate}}</th>
                <th>{{'Name'|translate}}</th>
                <th>{{'phone'|translate}}</th>
                <th>{{'tel'|translate}}</th>
                <th>{{'email'|translate}}</th>
                <th>{{'address'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in partners">
                <td>{{list.user_name}}</td>
                <td>{{list.name}}</td>
                <td>{{list.phone}}</td>
                <td>
                	{{list.tel}}
                </td>
                <td>{{list.email}}</td>
                <td>{{list.address}}</td>
                <td>
                    <a href="#/partner/add?partner_id={{list.partner_id}}" class="sui-btn btn-success">{{'edit'|translate}}</a>
                    <a href="#/partner/info?partner_id={{list.partner_id}}" class="sui-btn btn-primary">{{'info'|translate}}</a>
                    <a ng-click="partnerDelete(list.partner_id)" class="sui-btn btn-danger">{{'delete'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="page_Size" total="partnersTotal" get-data="partnerGet(pageNo)"></pager>
    <!-- 分页end -->
</div>
